<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用车申请</title>
    <link rel="stylesheet" href="/lib/layui/css/layui.css">
    <script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
    <script th:src="@{/js/jquery-3.6.0.js}"></script>
    <script th:src="@{/js/hr/wxw.js}"></script>
    <script th:src="@{/js/administrative/wxw_car.js}"></script>
    <style>
        #wxw {
            width: 98%;
            margin: 16px auto;
        }


    </style>
</head>
<body onload="bianhao()">

<table style="background-color: white ;height: 50px;margin: 12px auto;width: 98%">
    <tr>
        <td align="center" >
            <h2>[ 用车预定 ]</h2>
        </td>
    </tr>
</table>

<div id="wxw">
    <table class="layui-table">
        <tr align="right">
            <td>车辆编号：</td>
            <td><select class="layui-input bianhao" required>
                <option value="-1">请选择车辆</option>
            </select></td>
            <td>用车人：</td>
            <td><input type="text" class="layui-input yongcheName" readonly th:value="${session.user.name}"></td>
        </tr>
        <tr align="right">
            <td>用车部门：</td>
            <td><input type="text" class="layui-input" readonly th:value="${session.buMeng.departmentname}"></td>
            <td>时间：</td>
            <td><input type="date" class="layui-input yongcheDate" required></td>

        </tr>
        <tr align="right">
            <td>用车事由：</td>
            <td colspan="3"><textarea name="" required placeholder="请输入用车事由" class="layui-textarea yongcheshiyou"></textarea></td>
        </tr>
        <tr align="right">
            <td>审批部门：</td>
            <td><input type="text" class="layui-input shenpi" readonly value="人事部">

               </td>

        </tr>
        <tr align="center">
            <td colspan="4"><input type="button" class="layui-btn layui-btn-sm" value="&nbsp;&nbsp;确&nbsp;定&nbsp;" onclick="saveYongChu()">
            <input type="button" class="layui-btn layui-btn-primary layui-btn-sm" value="&nbsp;&nbsp;取&nbsp;消&nbsp;" onclick="location.reload()"></td>
        </tr>
    </table>
</div>
</body>
<script>
    //抓取下拉框选中的值
    layui.use('form', function () {
        var form = layui.form;

        form.render();

    });

    //弹层设置
    layui.use("layer", function () {
        var layer = layui.layer;
    });


</script>
</html>